function showEmojiDialog() {
  let dialogRoot = document.createElement("div");
  dialogRoot.classList.add("dialog-root");
  const emojiBoard = document.createElement("div");
  function showEmojis(emojis) {
    let childs = emojiBoard.childNodes;
    for (child of childs) {
      emojiBoard.removeChild(child);
    }
    emojis.forEach((item) => {
      let spanEmoji = document.createElement("span");
      spanEmoji.innerHTML = item.emoji;
      emojiBoard.append(spanEmoji);
    });
  }
  showEmojis(emojiList[0].emojis);
  dialogRoot.append(emojiBoard)
  emojiList.forEach((item) => {
    let span = document.createElement("span");
    span.innerHTML = item.name;
    span.setAttribute("data-emojis", item.emojis);
    dialogRoot.append(span);
  });
  document.body.append(dialogRoot);
}
